package com.lhh.springcommon.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhh.springcommon.entity.Collect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhh.springcommon.entity.vo.VideoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李厚航
 * @since 2025-02-25
 */
@Mapper
public interface CollectMapper extends BaseMapper<Collect> {

    /**
     * 分页查询用户收藏的视频
     * @param collect
     * @param page
     * @return
     */
    Page<VideoVO> queryPageCollectVideo(@Param("collect") Collect collect, Page<Collect> page);
}
